module.exports = class extends think.Controller {
    __before() {
        // console.log('12312')
    }

    __after() {
        // console.log('222222')
    }

    __call() {
        this.body = {
            code: 1000,
            data: '非法操作'
        }
    }

    indexAction() {

        let list = [
            1000
        ]
        let obj = {
            username: 'zhangchenn',
            age: 30
        }

        list.push(obj)

        for (let i = 1; i < 3; i++) {
            obj[i]
            list.push(obj)
        }

        this.body = {
            list
        }
    }

    sssAction() {
        this.body = '123123'
    }
}